using System;
using System.Xml;
using InfoJetSoft.Service.Entity;
using InfoJetSoft.Service.Util;

namespace InfoJetSoft.Service.Worker
{
	/// <summary>
	/// Summary description for FormBuildBrowserInitIdsWorker.
	/// </summary>
	class FormBuildBrowserInitIdsWorker
	{
        //CID 0827 //2011.03.07 //Begin
        public static void addTextAreaId(Form form, XmlElement textAreaElement)
        {
            string id = textAreaElement.GetAttribute(JetConstant.HTML_id);
            if (id.Length > 0)
            {
                form.TextAreaIdList.Add(id);
            }
        }
        //CID 0827 //2011.03.07 //End

        //CID 1171 //2012.02.24 //Begin
        public static void addImpriceDTPickerId(Form form, XmlElement inputElement)
        {
            string id = inputElement.GetAttribute(JetConstant.HTML_id);
            if (id.Length > 0)
            {
                if (form.DatePickerIdList == null)
                {
                    form.DatePickerIdList = new System.Collections.ArrayList();
                }
                form.DatePickerIdList.Add(id);
            }
        }
        //CID 1171 //2012.02.24 //End
	}
}
